package testy;
import java.awt.BorderLayout;

import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
import javax.swing.WindowConstants;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class TestWorkBench extends javax.swing.JFrame {
	
	private static final Logger log = LoggerFactory
			.getLogger(TestWorkBench.class);

	{
		//Set Look & Feel
		try {
			javax.swing.UIManager.setLookAndFeel(javax.swing.UIManager.getSystemLookAndFeelClassName());
		} catch(Exception e) {
			log.error("", e);
		}
	}

	private JInternalFrame jInternalFrame1;
	private JPanel jPanel1;
	private JPanel jPanel2;
	private JInternalFrame jInternalFrame2;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				TestWorkBench inst = new TestWorkBench();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	public TestWorkBench() {
		super();
		initGUI();
	}
	
	public TestWorkBench(JPanel[] panels) {
		super();
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jInternalFrame1 = new JInternalFrame();
				getContentPane().add(jInternalFrame1);
				jInternalFrame1.setBounds(43, 49, 372, 266);
				jInternalFrame1.setVisible(true);
				jInternalFrame1.setClosable(true);
				jInternalFrame1.setMaximizable(true);
				jInternalFrame1.setResizable(true);
				jInternalFrame1.setIconifiable(true);
				{
					jInternalFrame1.getContentPane().add(panels[0], BorderLayout.CENTER);
				}
			}
			{
				jInternalFrame2 = new JInternalFrame();
				getContentPane().add(jInternalFrame2);
				jInternalFrame2.setBounds(513, 133, 410, 280);
				jInternalFrame2.setVisible(true);
				jInternalFrame2.setIconifiable(true);
				jInternalFrame2.setMaximizable(true);
				jInternalFrame2.setResizable(true);
				jInternalFrame2.setClosable(true);
				{
					jInternalFrame2.getContentPane().add(panels[1], BorderLayout.CENTER);
				}
			}
			pack();
			this.setSize(950, 648);
		} catch (Exception e) {
			log.error("", e);
		}
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jInternalFrame1 = new JInternalFrame();
				getContentPane().add(jInternalFrame1);
				jInternalFrame1.setBounds(43, 49, 372, 266);
				jInternalFrame1.setVisible(true);
				jInternalFrame1.setClosable(true);
				jInternalFrame1.setMaximizable(true);
				jInternalFrame1.setResizable(true);
				jInternalFrame1.setIconifiable(true);
				{
					jPanel2 = new JPanel();
					jInternalFrame1.getContentPane().add(jPanel2, BorderLayout.CENTER);
				}
			}
			{
				jInternalFrame2 = new JInternalFrame();
				getContentPane().add(jInternalFrame2);
				jInternalFrame2.setBounds(513, 133, 410, 280);
				jInternalFrame2.setVisible(true);
				jInternalFrame2.setIconifiable(true);
				jInternalFrame2.setMaximizable(true);
				jInternalFrame2.setResizable(true);
				jInternalFrame2.setClosable(true);
				{
					jPanel1 = new JPanel();
					jInternalFrame2.getContentPane().add(jPanel1, BorderLayout.CENTER);
				}
			}
			pack();
			this.setSize(950, 648);
		} catch (Exception e) {
			log.error("", e);
		}
	}

}
